<?php
class Block_Core_Html_Head
    extends Block_Core_List
{
    protected $_action = array();

    public function addItem($type,$path)
    {
        switch ($type) {
            case 'skin_js': {
                $this->_action['skin_js'][] = $path;
                break;
            }
            case 'skin_css' : {
                $this->_action['skin_css'][] = $path;
                break;
            }
            case 'lib_css' : {
                $this->_action['lib_css'][] = $path;
                break;
            }
            case 'lib_js' : {
                $this->_action['lib_js'][] = $path;
                break;
            }
        }
        return $this;
    }

    public function getItems($type)
    {
        if(isset($this->_action[$type])) {
            return $this->_action[$type];
        } else {
            return array();
        }
    }
}